<template>
    <div>
        新闻详情页:{{ route.params.id }}
    </div>
</template>
<script lang='ts' setup>
import {useRoute} from 'vue-router'
const route=useRoute()
console.log('route',route.params.id);

</script>
<style lang='scss' scoped>
</style>